import lazyLoadView from '@/router/lazy-load';
import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const WorkorderManagement: AppRouteRecordRaw = {
  path: '/workorder',
  name: 'Workorder',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.workorder',
    requiresAuth: false,
    icon: 'icon-storage',
    order: 106,
    // roleCode: 'GROUP_ELDER_ADMIN',
  },
  children: [
    {
      path: 'alarm',
      name: 'WorkorderAlarm',
      component: lazyLoadView(
        () => import('@/views/lhj-v1/workorder-management/m-alarm/index.vue')
      ),
      meta: {
        locale: 'menu.workorder.alarm',
        requiresAuth: false,
        // roleCode: 'GROUP_ELDERLY',
        pageName: '工单列表',
      },
    },
  ],
};

export default WorkorderManagement;
